﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EntityModel
{
    /// <summary>
    /// 教师人员信息表
    /// </summary>
    [Table("A3")]
    public class EM_Teachers:EntityBase
    {
        /// <summary>
        /// 教师姓名
        /// </summary>
        [Column("A001")]
        [Required]
        [StringLength(50)]
        public string? StudentName { get; set; }

        /// <summary>
        /// 年龄
        /// </summary>
        [Required]
        [Column("A002")]
        public int Age { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        [StringLength(30)]
        [Column("A003")]
        [Required]
        public bool Sex { get; set; }


        /// <summary>
        /// 家庭地址
        /// </summary>
        [Column("A004")]
        [StringLength(50)]
        [Required]
        public string? HomeAddress { get; set; }

        /// <summary>
        /// 职位
        /// </summary>
        [Required]
        [Column("A005")]
        [StringLength(50)]
        public string? Position { get; set; }

        /// <summary>
        /// 薪资
        /// </summary>
        [Column("A006")]
        [Required]
        public double Money { get; set; }

        /// <summary>
        /// 系部
        /// </summary>
        [Required]
        [Column("A007")]
        [StringLength(50)]
        public string? Department { get; set; }

        
    }
}
